#!/usr/bin/python
# Filename: 07.py
import zipfile
import urllib2
import re
from os import sep as PSEP
import sys
pwd = sys.path[0]+PSEP
f_name = '90052'
zf = zipfile.ZipFile(pwd+'channel.zip')
fp = file(pwd+'7.out', 'w+')
#item in zf.infolist():
	#fp.write(item.comment)
while True:
	data = zf.read(f_name+'.txt')
	m = re.search('Next nothing is ([0-9]+)$', data)
	fp.write(zf.getinfo(f_name+'.txt').comment)
	f_name = m.group(1)
	print f_name
fp.close()
zf.close()